package ink.teamwork.stock.service;

import com.googlecode.genericdao.search.SearchResult;
import ink.teamwork.stock.entity.Stock;

import java.util.List;

public interface StockService {

    boolean save(Stock stock);
    boolean update(Stock stock);
    SearchResult<Stock> queryPage(int start, int size, String code);
    SearchResult<Stock> queryPage(int start, int size);
    List<Stock> queryListByName(String name);
    List<Stock> queryListByCode(String code);

}
